// import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

//测试接口函数
// import { getCategoryAPI } from './apis/testAPI'

// 引入common.scss
import '@/styles/common.scss'

// 全局指令注册
import { lazyPlugin } from '@/directives'
import {componentPlugin} from '@/components'

import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
const app = createApp(App)

const pinia = createPinia()
app.use(pinia)
//注册持久化插件
pinia.use(piniaPluginPersistedstate)
app.use(pinia)

app.use(router)
app.use(lazyPlugin)
app.use(componentPlugin)
app.mount('#app')


